import {newchoose} from "@/api/newchooseapi.js";

export let newchoosestore={
    module:{

    },
    state:{
        arr:[]
    },
    getters:{

    },
    mutations:{
        getnewchoose(state,payload){
            state.arr=payload
            // console.log(state.arr)
        }
    },
    actions:{
        sends(store){
            newchoose("/api/xiaomipro/goods/newchoose2").then((ok)=>{
                store.commit("getnewchoose",ok.data.newchoose)
            })
        }
    }
}